var express = require('express')
var router = express.Router()

var student = require('./control/student')


router.get("/",function(req,res){
	
	res.render("index",{
		title:"student"
	})
	
})

.get('/student',student.index)
.get('/student/list',student.list)
.get('/student/add',student.add)
.get('/student/edit',student.edit)
.get('/student/remove',student.remove)

.post('/student/add',student.addpost)
.post('/student/edit',student.doedit)




module.exports = router

